package spring.com.product.controller;

import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import spring.com.product.entity.UserInfo;
import spring.com.product.service.UserInfoService;

import java.util.List;

/**
 * @author liux
 * @date 2021/6/1 13:23
 */
@AllArgsConstructor
@RestController
@RequestMapping("/admin/product/")
public class productController {

      private final UserInfoService userInfoService;
      @GetMapping("userInfoList")
      public List<UserInfo> userInfoList(){
          return  userInfoService.UserInfoList();
      }
}